package com.yjha.ai.demos.web.controller;

import com.yjha.ai.demos.web.service.ChatService;
import lombok.RequiredArgsConstructor;
import org.springframework.ai.chat.model.ChatResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Flux;

@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/chat")
public class ChatController {
//
//    private final ChatService chatService;
//
//    @GetMapping(value = "/simple" , produces = "text/event-stream;charset=utf-8")
//    public Flux<ChatResponse> simpleChat(
//            @RequestParam String message
//    ){
//        return chatService.simpleChat(message);
//    }
//
//    @GetMapping(value = "/store" , produces = "text/event-stream;charset=utf-8")
//    public Flux<ChatResponse> chat(
//            @RequestParam String message
//    ){
//        return chatService.chatByVectorStore(message);
//    }
}

